import { createApp } from 'vue'
import App from './App.vue'
import router from './router/index.ts'
import 'element-plus/dist/index.css'
import { createPinia } from 'pinia'
import './styles/css/app.scss'
import { routerPermission } from './router/permission.ts'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// import './styles/element/index.scss'
routerPermission(router)
const pinia = createPinia()

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
app.use(router)
app.use(pinia)
app.mount('#app')
